package cn.ibizlab.odoo.core.odoo_fetchmail.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_fetchmail.domain.Fetchmail_server;
import cn.ibizlab.odoo.core.odoo_fetchmail.filter.Fetchmail_serverSearchContext;

/**
 * 实体[Fetchmail_server] 服务对象接口
 */

public interface IFetchmail_serverService{
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void createBatch(List<Fetchmail_server> fetchmail_servers, int batchSize) ;
     Fetchmail_server get(Integer id) ;
     Fetchmail_server get(Fetchmail_server fetchmail_server) ;
     boolean update(Fetchmail_server fetchmail_server) ;
     boolean create(Fetchmail_server fetchmail_server) ;
     boolean remove(Integer id) ;
     void updateBatch(List<Fetchmail_server> fetchmail_servers, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Fetchmail_server> searchDefault(Fetchmail_serverSearchContext context) ;

    /**
     * 根据用户查询
     */
     Page<Fetchmail_server> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Fetchmail_server> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Fetchmail_server convert2Domain(cn.ibizlab.odoo.core.client.model.Ifetchmail_server model ,Fetchmail_server domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ifetchmail_server convert2Model(Fetchmail_server domain , cn.ibizlab.odoo.core.client.model.Ifetchmail_server model);

}
